package cn.javass.test.model;

import java.io.Serializable;

import cn.javass.framework.orm.annotation.IColumn;
import cn.javass.framework.orm.annotation.ITable;
import cn.javass.framework.orm.annotation.Id;

@ITable(name="test")
public class UserModel implements Serializable{
	@Id(column="id")
	private String id ;
	@IColumn(column="value")
	private String name ;
	private AddressModel address = new AddressModel();
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public AddressModel getAddress() {
		return address;
	}
	public void setAddress(AddressModel address) {
		this.address = address;
	}
	
	@Override
	public String toString() {
		return "id="+id+",name="+name+",address="+address.getAddress();
	}
}	
